package AVL;

public class AVL {
    public static void main(String[] args){
        Node headNode=new Node(10);
        Setting method=new Setting(headNode);
        Node a=new Node(7);
        Node b=new Node(6);
        Node c=new Node(8);
        Node d=new Node(9);
        Node e=new Node(11);
        Node f=new Node(7);
        Node g=new Node(6);
        Node h=new Node(9);
        Node arr[]={a,b,c,d,e,};
        for(int i=0;i<arr.length;i++){
            method.addNode(arr[i],method.headNode);
        }
        method.midList(headNode);
        System.out.println();
        method.doubleRotate(headNode);
        method.midList(headNode);
    }
}
